package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the CC_DEDUCT database table.
 * 
 */
@Entity
@Table(name="CC_DEDUCT")
@NamedQuery(name="CcDeduct.findAll", query="SELECT c FROM CcDeduct c")
public class CcDeduct implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize=1,name="CC_DEDUCT_DEDUCTID_GENERATOR", sequenceName="SEQHIS")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CC_DEDUCT_DEDUCTID_GENERATOR")
	private long deductid;

	@Temporal(TemporalType.DATE)
	@JSONField(format="yyyy/MM/dd")
	private Date dedate;

	private BigDecimal dmoney;

	private BigDecimal dpaymentid;

	public CcDeduct() {
	}

	public long getDeductid() {
		return this.deductid;
	}

	public void setDeductid(long deductid) {
		this.deductid = deductid;
	}

	public Date getDedate() {
		return this.dedate;
	}

	public void setDedate(Date dedate) {
		this.dedate = dedate;
	}

	public BigDecimal getDmoney() {
		return this.dmoney;
	}

	public void setDmoney(BigDecimal dmoney) {
		this.dmoney = dmoney;
	}

	public BigDecimal getDpaymentid() {
		return this.dpaymentid;
	}

	public void setDpaymentid(BigDecimal dpaymentid) {
		this.dpaymentid = dpaymentid;
	}

}